package com.wzxy.wzinfo.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import com.wzxy.wzinfo.entiry.NewsIntroduce;

public interface NewsIntroRepository extends JpaRepository<NewsIntroduce,Integer> ,JpaSpecificationExecutor<NewsIntroduce> {

	@Modifying
	@Query("update NewsIntroduce o set o.state = :state where o.id = :id")
	void updataStatic(@Param("id")Integer id, @Param("state")Integer state);
}
